import Vue from 'vue'
import TiShiCom from './index.vue'
const Com = Vue.extend(TiShiCom)
const Docum = document.createElement('div')
document.body.appendChild(Docum)
const TiShi = ({
    text,
}) => {
    const TiShiData = new Com({
        el: document.createElement('div'),
        data() {
            return {
                text: text,
                flag: false,
            }
        },
        mounted() {
            this.flag = true
            setTimeout(() => {
                this.flag = false
            }, 1000);
        }
    })
    Docum.appendChild(TiShiData.$el)
}
Vue.prototype.$TiShi = TiShi
// 暴露出去的方法名
export default {
    TiShi
}